package com.aspose.cells;

class zatr extends zbz {
   zatr() {
      this.c(239);
   }

   void a(zatq var1, zqa var2) throws Exception {
      int var3 = 6 + var1.c.size() * 8;
      if (var3 > 8224) {
         this.c = new byte[8228];
      } else {
         this.a((short)var3);
         this.c = new byte[var3 + 4];
      }

      this.c[0] = (byte)this.f();
      byte var4 = 4;
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.b), 0, this.c, var4, 2);
      this.c[var4 + 2] = var1.a;
      int var7 = var4 + 4;
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.c.size()), 0, this.c, var7, 2);
      var7 += 2;

      for(int var5 = 0; var5 < var1.c.size(); ++var5) {
         if (var7 + 8 > this.c.length) {
            System.arraycopy(com.aspose.cells.b.a.zc.a(var7 - 4), 0, this.c, 2, 2);
            var2.a(this.c, var7);
            this.c[0] = 60;
            var7 = 4;
         }

         CellArea var6 = (CellArea)var1.c.get(var5);
         System.arraycopy(com.aspose.cells.b.a.zc.a(var6.StartRow), 0, this.c, var7, 2);
         System.arraycopy(com.aspose.cells.b.a.zc.a(var6.EndRow), 0, this.c, var7 + 2, 2);
         System.arraycopy(com.aspose.cells.b.a.zc.a(var6.StartColumn), 0, this.c, var7 + 4, 2);
         System.arraycopy(com.aspose.cells.b.a.zc.a(var6.EndColumn), 0, this.c, var7 + 6, 2);
         var7 += 8;
      }

      System.arraycopy(com.aspose.cells.b.a.zc.a(var7 - 4), 0, this.c, 2, 2);
      var2.a(this.c, var7);
   }
}
